import type { BasePageResp, BaseResponse } from "../baseType";

export interface LoginInfo {
  username: string;
  password: string;
}

export interface LoginInfoResp extends BaseResponse {
  data: string;
}

export interface UserInfoResp extends BaseResponse {
  data: {
    name: string;
    avatar: string;
    routes: string[];
    buttons: string[];
    roles: string[];
  };
}
export interface UserData {
  id?: number;
  createTime?: string;
  updateTime?: string;
  username: string;
  password: string;
  name?: string;
  phone?: string;
  roleName?: string;
}
export interface UserDataRecords extends BasePageResp {
  records: UserData[];
}

export interface UserDataPageResp extends BaseResponse {
  data: UserDataRecords;
}
export interface UserDataPageReq {}
